package com.ibeeking.found.content.service.common.dos;

import com.ibeeking.found.common.base.BaseDO;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @ClassName BroadcastGoodsDO
 * @Description
 * @Author ibeeking
 * @Date 2022-02-18 14:11
 **/
@Data
@TableName("broadcast_coupon")
public class BroadcastCouponDO  extends BaseDO implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 优惠券ID
     */
    @TableField(value="coupon_id")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long couponId;
    /**
     * 优惠券缩略图
     */
    @TableField(value="coupon_thumb")
    private String couponThumb;

    /**
     * 优惠券名称，最长14个汉字
     */
    @TableField(value="coupon_name")
    private String couponName;

    /**
     * 优惠券类型，
     */
    @TableField(value="coupon_type")
    private Integer couponType;

    /**
     * 优惠券面额(到分)
     */
    @TableField(value="coupon_value")
    private Long couponValue;

    /**
     * 优惠券面额2(到分)
     */
    @TableField(value="coupon_value2")
    private Long couponValue2;

    /**
     * 优惠券面额图片
     */
    @TableField(value="coupon_img")
    private String couponImg;

    /**
     * 优惠券详情页URL
     */
    @TableField(value="coupon_page_path")
    private String couponPagePath;

    /**
     * 外部优惠券ID
     */
    @TableField(value="coupon_refer_id")
    private String couponReferId;
    /**
     * 上架状态 1-上架 0-未上架 腾讯审核通过则视为上架
     */
    @TableField(value="publish_status")
    private Integer publishStatus;

    /**
     * 审核ID
     */
    @TableField(value="audit_id")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Integer auditId;
    /**
     * 上架时间
     */
    @TableField("online_time")
    private LocalDateTime onlineTime;
    /**
     * 备注
     */
    @TableField(value="remark")
    private String remark;

}
